//导入mongoose
const mongoose = require('mongoose')
let studentsSchema = new mongoose.Schema({
	username: String,
	time:Date,
	type: {
		type: String,
		default: "收入"
	},
	money:Number
})
//创建文档模型对象
let studentsModel = mongoose.model('students', studentsSchema)
//暴露模型对象
module.exports = studentsModel